#!/bin/bash
# Update the 3rd party libraries.

source .config
mkdir -p "${CLOSURE_HOME}"

build_templates() {
    if [[ -d "${CLOSURE_HOME}/closure-templates-read-only" ]]; then
	(cd "${CLOSURE_HOME}/closure-templates-read-only"; svn up)
    else
	(cd "${CLOSURE_HOME}";svn checkout http://closure-templates.googlecode.com/svn/trunk/ closure-templates-read-only)
    fi
    (cd "${CLOSURE_HOME}/closure-templates-read-only"; ant 'verification-tests')
}

build_templates
